package com.wl.feign;

import com.wl.domain.AjaxResult;
import com.wl.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/store")
@FeignClient(value = "store-server",fallbackFactory = FeignServerFallbackFactory.class)
public interface FeignServer{
    @PostMapping
    AjaxResult save(@RequestBody Store store);
}